package com.example.project.Service.Impl;

import com.example.project.Dao.CodeDao;
import com.example.project.Entity.Code;
import com.example.project.Service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CodeServiceImpl implements CodeService {

    @Autowired
    private CodeDao codeDao;

    @Override
    public Code selectCode(String flag, String code) {return codeDao.selectCode(flag, code);}

    @Override
    public void insertCode(String flag, String code, String time){codeDao.insertCode(flag,code,time);}

    @Override
    public void updateCode(String time){codeDao.updateCode(time);}

}
